﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FisheryPlatform.Entity;
using FisheryPlatform.Bussiness.Product;

namespace FisheryPlatform.Web.Admin.Product
{
    public partial class Details : System.Web.UI.Page
    {
        protected ProductEntity productInfo = null;
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected override void OnPreRender(EventArgs e)
        {
            #region
            base.OnPreRender(e);

            long proId = 0;
            if (long.TryParse(Request.QueryString["proId"], out proId))
            {
                productInfo = ProductManager.Get(proId);
            }
            else
            {
                productInfo = new ProductEntity();
            }
            #endregion
        }
    }
}